function MyScroll(option){
			
			if(option.child == undefined){
				option.child = 1;
			}
			if(option.iconPosition==0){
				$(".pullDownIcon").css("bottom","0");
			}else{
				$(".pullDownIcon").css("bottom","0.71rem");
			}
			
			var startY = null;
			var endY = null;
			var moveY = null;
			var $wrap = $(option.wrap);
			var $box =$wrap.find(option.box);
			var topDistance = 0;
			var isRun = false;
			var currentTop = 0;
			var windowHeight = $(window).height();
//			console.log($wrap.scrollTop());
			var currentHeight = $box.height()-windowHeight-70; //当前box，高于window的高度
			if(option.wrapFarmSupply=="1"){
					currentHeight = 600
				}
			if(option.scrollPosition=="1"){
					currentHeight = 800
				}
			var fn = {};
			var currentIndex = 0;
			var childeList = null;
			var childeHeight = null;
			var childeListHeight = null;
			fn.refreshHeight = function(){
				isRun = false;
				$(".pullDownIcon").hide();
				$box.removeClass("downAnimate");
				childeList = $box.children();
				childeListHeight = Math.ceil(childeList.length/option.child);
				childeHeight = $box.children().outerHeight();
				if(option.scrollPosition=="1"){
					var goodsHeight = 0;
				for(var i = 0;i<$(".newHome_proItem").length;i++){
					goodsHeight+=$(".newHome_proItem").eq(i).height();
				}
					currentHeight = goodsHeight - windowHeight; 
				}else{
//					if(childeHeight * childeListHeight > $box.height()){
//					$box.height(childeHeight * childeListHeight);
//					}
					currentHeight = $box.height() - windowHeight - 70;
				}
			};
			
//			$wrap.append('<div class="pullDownIcon pullDownIcon2"></div>');//添加下拉刷新
			
			$box.on("touchstart",function(e){
				$(function() {
    			$(".scrollLoading").scrollLoading();	
				});	
				startY = e.originalEvent.targetTouches[0].clientY;
			});
			$box.on("touchmove",function(e){
//				if(fn.pause){
//					return;
//					}
				topDistance = e.originalEvent.targetTouches[0].clientY - startY;
				listener(topDistance);
			});
			function listener(distance){ 
			    currentTop = $wrap.scrollTop();
				if(currentTop <= 0){
//					console.log("到top了");
					if(distance > 90){
						if(option.pullUp && !isRun){
//							$box.addClass("upAnimate");
//							isRun = true;
//							currentIndex++;
//							option.pullUp(currentIndex);
						}
					}else if(distance < -10){
//						$box.removeClass("upAnimate");
					}
				}else{
//						$box.removeClass("upAnimate");
					}
//					console.log(goodsHeight)
//					console.log(currentTop+"currentTop");
//					console.log(currentHeight+"currentHeight");
					if(currentTop >= currentHeight){
//					console.log("到bottom了");
					if(distance < -90){
						if(option.pullDown && !isRun){
//							console.log("开始加载，开始动画");
							$box.addClass("downAnimate");
							$(".pullDownIcon").show();
							isRun = true;
							currentIndex++;
//							if(option.scrollPosition=="1"){
//							if(!fn.pause){
//							option.pullDown(currentIndex);
//							$(".pullDownIcon").fadeOut(500);
//							}	
//							}else{
//							option.pullDown(currentIndex);
//							}
							option.pullDown(currentIndex); 
						}
					}else if(distance > 10){
							$box.removeClass("downAnimate");
							$(".pullDownIcon").hide();
					}
				}else{
							$box.removeClass("downAnimate");
							$(".pullDownIcon").hide();
				}
			}
			return fn;
		}